package me.huangxiang.design_pattern.command;

public class StereoOffCommand implements Command {
    private Stereo stereo;

    public StereoOffCommand(Stereo stereo) {
        this.stereo = stereo;
    }

    @Override
    public void execute() {
        this.stereo.popCD();
        this.stereo.off();
    }

    @Override
    public void undo() {

    }
}
